package cn.tedu;

import java.io.*;

public class INmian {
    public static void main(String[] args) {
        maojh();
//        maojh1();

    }

    private static void maojh1() {
        InputStream in = null;
        OutputStream out=null;
        try {

//            in = new FileInputStream(new File("D:\\ready\\1.txt"));
            out = new BufferedOutputStream(new FileOutputStream("D:\\ready\\1.txt"));
            out.write(4595);
            out.write(4595);
            out.write(4595);
            out.write(4595);
            out.write(4595);


//            int b ;
//            while((b=in.read())!=-1){
//                System.out.println(b);
//            }
        } catch (Exception e) {
            e.printStackTrace();
        }finally{
            try {
                out.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
//            try {
//                in.close();
//            } catch (IOException e) {
//                e.printStackTrace();
//            }
        }
    }

    private static void maojh() {
        Reader in = null;
        Writer out = null;
        try {
            in =new BufferedReader(new FileReader("D:\\ready\\1.txt"));
            int b;
            while((b=in.read())!=-1){

            }
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
